package com.naiterui.ehp.bs.patient.handler.data;

import com.naiterui.ehp.bp.bo.patient.MsgPublishParamBO;
import com.naiterui.ehp.bp.utils.event.BizEvent;

import lombok.Getter;
import lombok.ToString;

/**
 * @author gaoliangliang
 * @date 2019-07-12 13:55
 * @since 1.0.0
 */
@Getter
@ToString(callSuper = true)
public class PublishMsgEvent extends BizEvent<PublishMsgData> {

    private int msgType;

    public PublishMsgEvent(MsgPublishParamBO publishParamBO, PublishMsgData publishMsgData) {
        super(publishParamBO, publishMsgData, BizEvent.EVENT_TYPE_PUBLISHMSG);

        this.msgType = eventData.getMsgType();
    }

    @Override
    public MsgPublishParamBO getSource() {
        return (MsgPublishParamBO) super.getSource();
    }
}